package com.huopaolan.yohuoshop.Adapter;

import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.huopaolan.yohuoshop.Bean.StrollCommunityEntity;
import com.huopaolan.yohuoshop.R;

public class StrollCommunityAdapter extends BaseQuickAdapter<StrollCommunityEntity.Values, BaseViewHolder> {
    public StrollCommunityAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(BaseViewHolder helper, StrollCommunityEntity.Values item) {
        helper.setText(R.id.stroll_user_name, item.tag);
        helper.setText(R.id.stroll_title, item.title);
        ImageView helperView = helper.getView(R.id.stroll_message_image);
        Glide.with(helper.itemView.getContext()).load("https://ss0.bdstatic.com/94oJfD_bAAcT8t7mm9GUKT-xh_/timg?image&quality=100&size=b4000_4000&sec=1563850781&di=040da4a9cab8400932eaf78266fc3d03&src=http://b-ssl.duitang.com/uploads/item/201710/31/20171031100518_cZ8Ye.jpeg").into(helperView);
    }
}
